import { http } from "@/utils/http";
import { ListResult } from "./models";

/** 获取内容列表 */

export interface userUuidInfoType {
  omni_user_uuid: string;
}
export const userUuidInfo = (data: object) => {
  return http.request<ListResult<userUuidInfoType>>("post", `/api/open/nurturing/user/getOmniUserUuid`,{
    data
  });
}



export interface userInfoType {
  name:string,
  mobile:string,
  headimgurl:string,
  company:string,
  position:string,
  view:number,
  likes:number,
  wechatQrcode:string,
  workQrcode:string,
  information:{
    backgroundImage:string,
    logo:string,
    desc:string,
    website:string,
    location:{
      latitude: number,
      longitude: number,
      name: string,
      address: string,
      scale: number,
      infoUrl: string
    }
  }
}
export const getUserInfo = (uuid: string) => {
  return http.request<ListResult<userInfoType>>("get", `/api/open/nurturing/user/info/${uuid}`);
}